<template>
  <div class="setUp">
    <div class="com">
      <div class="v1">
        设置
        <img @click="$emit('closeFn')" src="@/assets/danxxuan2@1x.png" />
      </div>
      <div class="v2">
        <div class="v3">
          <div :class="{ active: type == 1 }" @click="type = 1">个人信息</div>
          <div :class="{ active: type == 2 }" @click="type = 2">检查更新</div>
          <div class="btn" @click="goTo()">退出登录</div>
        </div>
        <div v-if="type == 1" class="v4">
          <div>用户昵称：<span>kelly小宝宝</span></div>
          <div>手机号码：<span>130****8989</span></div>
          <div>微信账号：<span>kelly小宝宝</span></div>
          <div>文件下载位置：<span>F盘:\工作文件夹</span></div>
        </div>
        <div v-if="type == 2" class="v4">
          <div class="v5">
            <img src="@/assets/Copy@1x.png" />

            <p>软件名称</p>
            <p><span>当前版本：2.5.15</span></p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      type: 1,
    };
  },
  mounted() {},
  methods: {
    goTo(){
      this.$router.push({ path: "/" });

    }
  },
};
</script>
<style lang="less" scoped>
.setUp {
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  .com {
    width: 750px;
    height: 400px;
    line-height: 20px;
    background-color: rgba(255, 255, 255, 1);
    color: rgba(16, 16, 16, 1);
    font-size: 14px;
    text-align: center;
    box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.4);
    font-family: Roboto;
    position: relative;
    .v1 {
      height: 60px;
      line-height: 60px;
      color: rgba(16, 16, 16, 1);
      font-size: 24px;
      text-align: center;
      border-bottom: 1px solid rgba(233, 239, 253, 1);
      img {
        width: 20px;
        height: 20px;
        position: absolute;
        right: 20px;
        top: 20px;
      }
    }
    .v2 {
      display: flex;
      padding: 10px;
      .v3 {
        margin-right: 15px;
        div {
          width: 150px;
          height: 46px;
          line-height: 46px;
          text-align: center;
          color: rgba(16, 16, 16, 1);
          font-size: 14px;
          cursor: pointer;
        }
        .active {
          width: 150px;
          height: 46px;
          line-height: 46px;
          background-color: rgba(245, 248, 255, 1);
          color: rgba(16, 16, 16, 1);
          font-size: 14px;
        }
        .btn {
          width: 150px;
          height: 46px;
          line-height: 46px;
          background-color: rgba(204, 204, 204, 1);
          text-align: center;
          color: rgba(238, 244, 249, 1);
          font-size: 14px;
          margin-top: 162px;
        }
      }
      .v4 {
        width: 550px;
        height: 300px;
        line-height: 20px;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 1);
        text-align: left;
        border: 1px solid rgba(233, 239, 253, 1);
        padding: 30px;
        div {
          margin-bottom: 22px;
          color: #333;
          font-size: 14px;
          span {
            color: #999;
          }
        }
        .v5 {
          margin-top: 40px;
          text-align: center;
          color: rgba(16, 16, 16, 1);
          font-size: 14px;
          line-height: 1.6;
          img {
            width: 100px;
            height: 100px;
          }
        }
      }
    }
  }
}
</style>
